package cn.client.data.remoteData.repository

import cn.client.data.remoteData.ApiService
import cn.client.data.remoteData.bean.BaseResp
import cn.client.data.remoteData.bean.PushSignUpInfo
import cn.client.data.remoteData.bean.User
import cn.client.data.remoteData.bean.VerifyAccount
import javax.inject.Inject

class SignUpRepository @Inject constructor(private val apiService: ApiService) {


    // TODO: 注册-验证账号是否可以注册
    suspend fun signUpFirst(verifyAccount: VerifyAccount): BaseResp<Any>
    {
        return apiService.signUpFirst(verifyAccount)
    }

    // TODO: 注册-校验验证码
    suspend fun signUpSecond(user: User): BaseResp<Any>
    {
        return apiService.signUpSecond(user)
    }

    // TODO: 注册-提交注册信息
    suspend fun signUpThird(push: PushSignUpInfo): BaseResp<Any>
    {
        return apiService.signUpThird(push)
    }

}